﻿<Windows:BookvarToolWindow
	x:Class="BookvarWpf.Windows.Collaboration.CollaborationChat"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:aw="clr-namespace:Assergs.Windows;assembly=Assergs.Windows"
	xmlns:awc="clr-namespace:Assergs.Windows.Controls;assembly=Assergs.Windows"
	xmlns:Windows="clr-namespace:BookvarWpf.Windows;assembly="
    xmlns:r="clr-namespace:Bookvar.UI.Localization;assembly=Bookvar.UI"
	Header="{r:Resources CollaborationChatHeaderText}"
	Icon="pack://application:,,,/BookvarWPF;component/Resources/Icons/16x16/Darf16.png"
	Style="{DynamicResource {x:Type aw:ToolWindow}}"
    Height="250"
    Width="450"
	>
  <DockPanel>
    <Grid>
      <Grid.RowDefinitions>
        <RowDefinition Height="5*"/>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="1*" MinHeight="50" />
      </Grid.RowDefinitions>
      <ScrollViewer x:Name="logScrollViewer">
      <RichTextBox x:Name="chatLogTextBox" IsReadOnly="True" Grid.Row="0">
        <RichTextBox.Resources>
          <Style TargetType="{x:Type Paragraph}">
            <Setter Property="Margin" Value="0"/>
            <Setter Property="Padding" Value="0"/>
          </Style>
        </RichTextBox.Resources>
      </RichTextBox>
      </ScrollViewer>
      <GridSplitter VerticalAlignment="Center" Grid.Row="1" Height="5" HorizontalAlignment="Stretch" ShowsPreview="True"/>
      <TextBox x:Name="userMessageTextBox" AcceptsReturn="True" VerticalAlignment="Stretch" Grid.Row="2"/>
    </Grid>
  </DockPanel>
</Windows:BookvarToolWindow>